﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InspVisitDistributionPole.aspx.cs" Inherits="PolePosition.v3.WcfService.MapServices.InspVisitDistributionPole" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Balloon Text</title>
    <style>
        <!--
        html body {border-left: solid steelblue 5px; background-color: White; margin: 0px; padding: 0px; padding-left: 5px; font-family: Arial; font-size: x-small; width: 100%; height: 100%; overflow-x: hidden;}
        .title-main {text-transform: uppercase; font-weight: bold; margin-top: 10px; font-size: medium;}
        .title {text-transform: uppercase; font-weight: bold; margin-top: 10px; font-size: medium;}
        .indent {padding-left: 5px;}
        img.image {margin: 3px;}
        a.image {}
        a.image:hover {}
        .namevalue-table {border: solid gainsboro 1px;width:95%}
        td.namevalue-namecell {width: 100px; font-weight: bold; padding: 3px;}
        td.namevalue-valuecell {width: 165px; padding: 3px;}
        -->
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:FormView ID="FormViewAssetStructure" runat="server">
   
        <ItemTemplate>
            
            <table width='100%' cellpadding='0' cellspacing='0' border='0'>
                <tr>
                    <td align="right" valign='bottom'>
                        <asp:HyperLink ID="lnkBack" runat="server" Visible='<%#(Request.QueryString["HideBackLink"] == null)%>' NavigateUrl='<%#(Request.UrlReferrer != null) ? Request.UrlReferrer.AbsoluteUri : string.Empty%>'>< Back</asp:HyperLink>
                    </td>
                </tr>

                <tr>
                    <td valign='top'>
                        <div class="title-main">
                            <%#XPath("TITLE")%>
                        </div>
                    </td>
                </tr>
            </table>
            
            <table class="namevalue-table" cellspacing="0" cellpadding="0">
                <tr><td class="namevalue-namecell">Record</td><td class="namevalue-valuecell"><%# XPath("Vendor_Distribution_Poles_PoleId")%></td></tr>
                <tr><td class="namevalue-namecell">Map</td><td class="namevalue-valuecell"><%# XPath("MapName")%></td></tr>
                <tr><td class="namevalue-namecell">Section</td><td class="namevalue-valuecell"><%# XPath("SectionName")%></td></tr>
                <tr><td class="namevalue-namecell">Number</td><td class="namevalue-valuecell"><%# XPath("Number")%></td></tr>
                <tr><td class="namevalue-namecell">Top Types</td><td class="namevalue-valuecell"></td></tr>                
                <asp:Repeater ID="RepeaterAssetStructureNotes" runat="server" DataSource='<%# XPathSelect("TOPTYPES") %>'>
                    <ItemTemplate>
                        <tr><td class="namevalue-namecell"></td><td class="namevalue-valuecell">- <%# XPath("Name")%></td></tr>                                
                    </ItemTemplate>
                </asp:Repeater>   
                <tr><td class="namevalue-namecell">D-804</td><td class="namevalue-valuecell"><%# XPath("D804")%></td></tr>
                <tr><td class="namevalue-namecell">Inspection Type</td><td class="namevalue-valuecell"><%# XPath("InspectionTypeName")%></td></tr>
                <tr><td class="namevalue-namecell">Result Type</td><td class="namevalue-valuecell"><%# XPath("ResultTypeName")%></td></tr>                                                
                <tr><td class="namevalue-namecell">Electrical</td><td class="namevalue-valuecell"><%# XPath("Electrical")  %></td></tr>
                <tr><td class="namevalue-namecell">Comments</td><td class="namevalue-valuecell"><%# XPath("Comments")%></td></tr>
                <tr><td class="namevalue-namecell">Notes</td><td class="namevalue-valuecell"></td></tr>                
                <asp:Repeater ID="Repeater1" runat="server" DataSource='<%# XPathSelect("NOTE") %>'>
                    <ItemTemplate>
                        <tr><td class="namevalue-namecell"></td><td class="namevalue-valuecell">- <%# XPath("Name")%></td></tr>                                
                    </ItemTemplate>
                </asp:Repeater>            
                <tr><td class="namevalue-namecell">Species</td><td class="namevalue-valuecell"><%# XPath("SpecieName")%></td></tr>                        
                <tr><td class="namevalue-namecell">Length</td><td class="namevalue-valuecell"><%# XPath("LengthName")%></td></tr>                        
                <tr><td class="namevalue-namecell">Class</td><td class="namevalue-valuecell"><%# XPath("ClassName")%></td></tr>
                <tr><td class="namevalue-namecell">Treatment</td><td class="namevalue-valuecell"><%# XPath("TreatMentName")%></td></tr>
                <tr><td class="namevalue-namecell">Year</td><td class="namevalue-valuecell"><%# XPath("Year")%></td></tr>    
                <tr><td class="namevalue-namecell">KV</td><td class="namevalue-valuecell"><%# XPath("KVName")%></td></tr>
                <tr><td class="namevalue-namecell">Circuit</td><td class="namevalue-valuecell"><%# XPath("Circuit")%></td></tr>    
                <tr><td class="namevalue-namecell">Conductor Type</td><td class="namevalue-valuecell"><%# XPath("ConductorTypeName")%></td></tr>
                <tr><td class="namevalue-namecell">ACSR</td><td class="namevalue-valuecell"><%# XPath("ACSRName")%></td></tr>    
                <tr><td class="namevalue-namecell">Last Visit</td><td class="namevalue-valuecell"><%# (XPath("LVisit") != null) ? DateTime.Parse(XPath("LVisit").ToString()).ToString("D") : string.Empty %></td></tr>
            </table>
            
            <asp:Repeater ID="RepeaterAssetStructureImages" runat="server" DataSource='<%# XPathSelect("IMAGE") %>'>
                <ItemTemplate>
                    <a class="image" target="_blank" href='<%# XPath("@href") %>'><img class="image" src='<%# XPath("@src") %>' border="0" /></a>                
                </ItemTemplate>
            </asp:Repeater>
            
            <asp:Repeater ID="RepeaterMeters" runat="server" DataSource='<%# XPathSelect("METER") %>'>
                <ItemTemplate>
                    <div class="title-main">
                        <%# XPath("METERTITLE")%>
                    </div>
                    <table class="namevalue-table" cellspacing="0" cellpadding="0">
                        <tr><td class="namevalue-namecell">Number</td><td class="namevalue-valuecell"><%# XPath("Number")%></td></tr>
                        <tr><td class="namevalue-namecell">Comments</td><td class="namevalue-valuecell"><%# XPath("Comments")%></td></tr>
                        <tr><td class="namevalue-namecell" colspan='2'><a class="image" target="_blank" href='<%# XPath("MeterImageHref") %>'><img class="image" src='<%# XPath("MeterImageSrc") %>' border="0" /></a></td></tr>
                    </table>
                </ItemTemplate>
            </asp:Repeater>
            
            <asp:Repeater ID="Repeater2" runat="server" DataSource='<%# XPathSelect("TRANSFORMER") %>'>
                <ItemTemplate>
                    <div class="title-main">
                        <%# XPath("TRANSFORMERTITLE")%>
                    </div>
                    <table class="namevalue-table" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="namevalue-namecell">Inspection On</td><td class="namevalue-valuecell"><%# (XPath("CreatedDate") != null) ? DateTime.Parse(XPath("CreatedDate").ToString()).ToString("MM/dd/yyyy") : string.Empty %></td>
                            <td class="namevalue-namecell">Phase</td><td class="namevalue-valuecell"><%# XPath("PhaseName")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Utility Number</td><td class="namevalue-valuecell"><%# XPath("UtilityNumber")%></td>
                            <td class="namevalue-namecell">Type</td><td class="namevalue-valuecell"><%# XPath("TypeName")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Serial Number</td><td class="namevalue-valuecell"><%# XPath("SerialNumber")%></td>
                            <td class="namevalue-namecell">Class</td><td class="namevalue-valuecell"><%# XPath("ClassName")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Manufacturer</td><td class="namevalue-valuecell"><%# XPath("Manufacturer")%></td>
                            <td class="namevalue-namecell">Arrestor</td><td class="namevalue-valuecell"><%# XPath("ArrestorDesc")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Primary</td><td class="namevalue-valuecell"><%# XPath("Primary")%></td>
                            <td class="namevalue-namecell">Dual Rated</td><td class="namevalue-valuecell"><%# XPath("DualRatedDesc")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Secondary</td><td class="namevalue-valuecell"><%# XPath("Secondary")%></td>
                            <td class="namevalue-namecell">PCB Type</td><td class="namevalue-valuecell"><%# XPath("PCBName")%></td>
                        </tr>                       
                       
                        <tr>
                            <td class="namevalue-namecell">Transf. type</td><td class="namevalue-valuecell"><%# XPath("TransformerName")%></td>
                            <td class="namevalue-namecell">Pre 1978</td><td class="namevalue-valuecell"><%# XPath("Pre1978Desc")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Comments</td><td class="namevalue-valuecell"><%# XPath("Comments")%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>PPM</td><td class="namevalue-valuecell"><%# XPath("PPM")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Cutout</td><td class="namevalue-valuecell"><%# XPath("CutoutDesc")%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>Cutout kV</td><td class="namevalue-valuecell"><%# XPath("CutoutValue")%></td>
                        </tr>  
                        
                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Can</td><td class="namevalue-valuecell" ><%# XPath("CanDesc")%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>Det By</td><td class="namevalue-valuecell" ><%# XPath("DeterminedByDesc")%></td>
                        </tr>                        

                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Test No.</td><td class="namevalue-valuecell"><%# XPath("TestNumber")%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>Impedance</td><td class="namevalue-valuecell" ><%# XPath("Impeddance")%></td>
                        </tr>   
                        
                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Taps</td><td class="namevalue-valuecell" ><%# XPath("Taps")%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>Polarity</td><td class="namevalue-valuecell" ><%# XPath("Polarity")%></td>
                        </tr>    
                        
                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Mfg Date</td><td class="namevalue-valuecell" ><%# (XPath("ManufDate") != null) ? DateTime.Parse(XPath("ManufDate").ToString()).ToString("MM/yyyy") : string.Empty%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>Sticker</td><td class="namevalue-valuecell" ><%# XPath("StickerDesc")%></td>
                        </tr>                                                     
                        
                        <tr>
                            <td class="namevalue-namecell" >Notes</td><td colspan='3' class="namevalue-namecell"></td>
                        </tr>
                        <asp:Repeater ID="rptnotes" runat="server" DataSource='<%# XPathSelect("TRANSNOTES") %>'>
                            <ItemTemplate>
                                <tr><td class="namevalue-namecell"></td><td colspan='3' class="namevalue-valuecell">- <%# XPath("LookUpText")%></td></tr>                                
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>

                    <asp:Repeater ID="rptTransImages" runat="server" DataSource='<%# XPathSelect("TRANSIMAGES") %>'>
                        <ItemTemplate>
                            <a class="image" target="_blank" href='<%# XPath("@href") %>'><img class="image" src='<%# XPath("@src") %>' border="0" /></a>                
                        </ItemTemplate>
                    </asp:Repeater>
                </ItemTemplate>
            </asp:Repeater>            
            
            
            <asp:Repeater ID="Repeater3" runat="server" DataSource='<%# XPathSelect("SECTIONALIZER") %>'>
                <ItemTemplate>
                    <div class="title-main">
                        <%# XPath("SECTIONALIZERTITLE")%>
                    </div>
                    <table class="namevalue-table" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="namevalue-namecell">Inspection On</td><td class="namevalue-valuecell"><%# (XPath("CreatedDate") != null) ? DateTime.Parse(XPath("CreatedDate").ToString()).ToString("MM/dd/yyyy") : string.Empty %></td>
                            <td class="namevalue-namecell">Phase</td><td class="namevalue-valuecell"><%# XPath("PhaseName")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Manufacturer</td><td class="namevalue-valuecell"><%# XPath("Manufacturer")%></td>
                            <td class="namevalue-namecell">Serial Number</td><td class="namevalue-valuecell"><%# XPath("SerialNumber")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Mfg Date</td><td class="namevalue-valuecell" ><%# (XPath("ManufDate") != null) ? DateTime.Parse(XPath("ManufDate").ToString()).ToString("MM/yyyy") : string.Empty%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>Sticker</td><td class="namevalue-valuecell" colspan='3'><%# XPath("StickerDesc")%></td>
                        </tr>  
                        
                        <tr>
                            <td class="namevalue-namecell">Sectionalizer Number</td><td class="namevalue-valuecell"><%# XPath("PoleNumber")%></td>
                            <td class="namevalue-namecell">Pre 1978</td><td class="namevalue-valuecell"><%# XPath("Pre1978Desc")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Max. kV</td><td class="namevalue-valuecell"><%# XPath("MaxkV")%></td>
                            <td class="namevalue-namecell">Type</td><td class="namevalue-valuecell"><%# XPath("Type")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Curve A</td><td class="namevalue-valuecell"><%# XPath("CurveA")%></td>
                            <td class="namevalue-namecell">Curve B</td><td class="namevalue-valuecell"><%# XPath("CurveB")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Curve A</td><td class="namevalue-valuecell"><%# XPath("CurveC")%></td>
                            <td class="namevalue-namecell">Curve B</td><td class="namevalue-valuecell"><%# XPath("CurveD")%></td>
                        </tr>
                        
                        
                        <tr>
                            <td class="namevalue-namecell">Interrupter</td><td class="namevalue-valuecell"><%# XPath("InterrupterName")%></td>
                            <td class="namevalue-namecell">PCB Type</td><td class="namevalue-valuecell"><%# XPath("PCBName")%></td>
                        </tr>
                                
                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Det By</td><td class="namevalue-valuecell"><%# XPath("DeterminedByDesc")%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>PPM</td><td class="namevalue-valuecell"><%# XPath("PPM")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Test No.</td><td class="namevalue-valuecell"><%# XPath("TestNo")%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>Comments</td><td class="namevalue-valuecell"><%# XPath("Comments")%></td>
                        </tr>         
                        
                        <tr>
                            <td class="namevalue-namecell" >Notes</td><td class="namevalue-namecell"></td>
                        </tr>
                        <asp:Repeater ID="rptsectnotes" runat="server" DataSource='<%# XPathSelect("SECTNOTES") %>'>
                            <ItemTemplate>
                                <tr><td class="namevalue-namecell"></td><td colspan='3' class="namevalue-valuecell">- <%# XPath("LookUpText")%></td></tr>                                
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>

                    <asp:Repeater ID="rptSectImages" runat="server" DataSource='<%# XPathSelect("SECTIMAGES") %>'>
                        <ItemTemplate>
                            <a class="image" target="_blank" href='<%# XPath("@href") %>'><img class="image" src='<%# XPath("@src") %>' border="0" /></a>                
                        </ItemTemplate>
                    </asp:Repeater>
                </ItemTemplate>
            </asp:Repeater>   
            
            
            <asp:Repeater ID="Repeater4" runat="server" DataSource='<%# XPathSelect("RECLOSER") %>'>
                <ItemTemplate>
                    <div class="title-main">
                        <%# XPath("RECLOSERTITLE")%>
                    </div>
                    <table class="namevalue-table" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="namevalue-namecell">Inspection On</td><td class="namevalue-valuecell"><%# (XPath("CreatedDate") != null) ? DateTime.Parse(XPath("CreatedDate").ToString()).ToString("MM/dd/yyyy") : string.Empty %></td>
                            <td class="namevalue-namecell">Phase</td><td class="namevalue-valuecell"><%# XPath("PhaseName")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Manufacturer</td><td class="namevalue-valuecell"><%# XPath("Manufacturer")%></td>
                            <td class="namevalue-namecell">Serial Number</td><td class="namevalue-valuecell"><%# XPath("SerialNumber")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Mfg Date</td><td class="namevalue-valuecell" ><%# (XPath("ManufDate") != null) ? DateTime.Parse(XPath("ManufDate").ToString()).ToString("MM/yyyy") : string.Empty%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>Sticker</td><td class="namevalue-valuecell" colspan='3'><%# XPath("StickerDesc")%></td>
                        </tr>  
                        
                        <tr>
                            <td class="namevalue-namecell">Recloser Number</td><td class="namevalue-valuecell"><%# XPath("PoleNumber")%></td>
                            <td class="namevalue-namecell">Pre 1978</td><td class="namevalue-valuecell"><%# XPath("Pre1978Desc")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Max. kV</td><td class="namevalue-valuecell"><%# XPath("MaxkV")%></td>
                            <td class="namevalue-namecell">Type</td><td class="namevalue-valuecell"><%# XPath("Type")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Curve A</td><td class="namevalue-valuecell"><%# XPath("CurveA")%></td>
                            <td class="namevalue-namecell">Curve B</td><td class="namevalue-valuecell"><%# XPath("CurveB")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell">Curve A</td><td class="namevalue-valuecell"><%# XPath("CurveC")%></td>
                            <td class="namevalue-namecell">Curve B</td><td class="namevalue-valuecell"><%# XPath("CurveD")%></td>
                        </tr>
                        
                        
                        <tr>
                            <td class="namevalue-namecell">Interrupter</td><td class="namevalue-valuecell"><%# XPath("InterrupterName")%></td>
                            <td class="namevalue-namecell">PCB Type</td><td class="namevalue-valuecell"><%# XPath("PCBName")%></td>
                        </tr>
                                
                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Det By</td><td class="namevalue-valuecell"><%# XPath("DeterminedByDesc")%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>PPM</td><td class="namevalue-valuecell"><%# XPath("PPM")%></td>
                        </tr>
                        
                        <tr>
                            <td class="namevalue-namecell" style='vertical-align:top'>Test No.</td><td class="namevalue-valuecell"><%# XPath("TestNo")%></td>
                            <td class="namevalue-namecell" style='vertical-align:top'>Comments</td><td class="namevalue-valuecell"><%# XPath("Comments")%></td>
                        </tr>         
                        
                        <tr>
                            <td class="namevalue-namecell" >Notes</td><td class="namevalue-namecell"></td>
                        </tr>
                        <asp:Repeater ID="rptreclnotes" runat="server" DataSource='<%# XPathSelect("RECLNOTES") %>'>
                            <ItemTemplate>
                                <tr><td class="namevalue-namecell"></td><td colspan='3' class="namevalue-valuecell">- <%# XPath("LookUpText")%></td></tr>                                
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>

                    <asp:Repeater ID="rptReclImages" runat="server" DataSource='<%# XPathSelect("RECLIMAGES") %>'>
                        <ItemTemplate>
                            <a class="image" target="_blank" href='<%# XPath("@href") %>'><img class="image" src='<%# XPath("@src") %>' border="0" /></a>                
                        </ItemTemplate>
                    </asp:Repeater>
                </ItemTemplate>
            </asp:Repeater>   
            
        </ItemTemplate>
    </asp:FormView>
    </form>
</body>
</html>
